package com.jeeplus.modules.file.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.common.persistence.Page;
import com.jeeplus.common.service.CrudService;
import com.jeeplus.modules.file.entity.FileManage;
import com.jeeplus.modules.file.dao.FileManageDao;

/**
 * 资源共享管理Service
 * @author wangkai
 * @version 2017-12-15
 */
@Service
@Transactional(readOnly = true)
public class FileManageService extends CrudService<FileManageDao, FileManage> {

	public FileManage get(String id) {
		return super.get(id);
	}
	
	public List<FileManage> findList(FileManage fileManage) {
		return super.findList(fileManage);
	}
	
	public Page<FileManage> findPage(Page<FileManage> page, FileManage fileManage) {
		return super.findPage(page, fileManage);
	}
	
	@Transactional(readOnly = false)
	public void save(FileManage fileManage) {
		super.save(fileManage);
	}
	
	@Transactional(readOnly = false)
	public void delete(FileManage fileManage) {
		super.delete(fileManage);
	}
	
	@Transactional(readOnly = false)
	public void audit(FileManage fileManage) {
		dao.audit(fileManage);
	}
	
	
}